install-dependency
Purpose
Installs a JAR dependency, making it available to Grails dependency resolution mechanism.Examples
grails install-dependency mysql:mysql-connector-java:5.1.5 grails install-dependency mysql:mysql-connector-java:5.1.5 --dir=lib grails install-dependency --group=mysql --name=mysql-connector-java --version=5.1.5
Description
Usage:grails install-dependency [dependency]
group- The group of the dependencyname- The name of the dependencyversion- The version of the dependencyrepository- The repository to resolve fromdir- The target directory to resolve JAR files to
install-dependency command allows the installation of a JAR dependency into the Ivy cache so that it can be resolved locally (without needing to configure a repository explicitly).In its most simple form you can pass a single argument that defines the dependency in the form "group:name:version":grails install-dependency mysql:mysql-connector-java:5.1.5
repository argument:grails install-dependency mysql:mysql-connector-java:5.1.5 --repository=http://download.java.net/maven/2
USER_HOME/.ivy2/cache), if you wish the JAR files to be placed in an alternative directory you can use the dir argument:
grails install-dependency mysql:mysql-connector-java:5.1.5 --dir=lib

